package com.zhongwang.business.gen.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class TaskExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TaskExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andFkidIsNull() {
            addCriterion("fkId is null");
            return (Criteria) this;
        }

        public Criteria andFkidIsNotNull() {
            addCriterion("fkId is not null");
            return (Criteria) this;
        }

        public Criteria andFkidEqualTo(Integer value) {
            addCriterion("fkId =", value, "fkid");
            return (Criteria) this;
        }

        public Criteria andFkidNotEqualTo(Integer value) {
            addCriterion("fkId <>", value, "fkid");
            return (Criteria) this;
        }

        public Criteria andFkidGreaterThan(Integer value) {
            addCriterion("fkId >", value, "fkid");
            return (Criteria) this;
        }

        public Criteria andFkidGreaterThanOrEqualTo(Integer value) {
            addCriterion("fkId >=", value, "fkid");
            return (Criteria) this;
        }

        public Criteria andFkidLessThan(Integer value) {
            addCriterion("fkId <", value, "fkid");
            return (Criteria) this;
        }

        public Criteria andFkidLessThanOrEqualTo(Integer value) {
            addCriterion("fkId <=", value, "fkid");
            return (Criteria) this;
        }

        public Criteria andFkidIn(List<Integer> values) {
            addCriterion("fkId in", values, "fkid");
            return (Criteria) this;
        }

        public Criteria andFkidNotIn(List<Integer> values) {
            addCriterion("fkId not in", values, "fkid");
            return (Criteria) this;
        }

        public Criteria andFkidBetween(Integer value1, Integer value2) {
            addCriterion("fkId between", value1, value2, "fkid");
            return (Criteria) this;
        }

        public Criteria andFkidNotBetween(Integer value1, Integer value2) {
            addCriterion("fkId not between", value1, value2, "fkid");
            return (Criteria) this;
        }

        public Criteria andTnameIsNull() {
            addCriterion("tname is null");
            return (Criteria) this;
        }

        public Criteria andTnameIsNotNull() {
            addCriterion("tname is not null");
            return (Criteria) this;
        }

        public Criteria andTnameEqualTo(String value) {
            addCriterion("tname =", value, "tname");
            return (Criteria) this;
        }

        public Criteria andTnameNotEqualTo(String value) {
            addCriterion("tname <>", value, "tname");
            return (Criteria) this;
        }

        public Criteria andTnameGreaterThan(String value) {
            addCriterion("tname >", value, "tname");
            return (Criteria) this;
        }

        public Criteria andTnameGreaterThanOrEqualTo(String value) {
            addCriterion("tname >=", value, "tname");
            return (Criteria) this;
        }

        public Criteria andTnameLessThan(String value) {
            addCriterion("tname <", value, "tname");
            return (Criteria) this;
        }

        public Criteria andTnameLessThanOrEqualTo(String value) {
            addCriterion("tname <=", value, "tname");
            return (Criteria) this;
        }

        public Criteria andTnameLike(String value) {
            addCriterion("tname like", value, "tname");
            return (Criteria) this;
        }

        public Criteria andTnameNotLike(String value) {
            addCriterion("tname not like", value, "tname");
            return (Criteria) this;
        }

        public Criteria andTnameIn(List<String> values) {
            addCriterion("tname in", values, "tname");
            return (Criteria) this;
        }

        public Criteria andTnameNotIn(List<String> values) {
            addCriterion("tname not in", values, "tname");
            return (Criteria) this;
        }

        public Criteria andTnameBetween(String value1, String value2) {
            addCriterion("tname between", value1, value2, "tname");
            return (Criteria) this;
        }

        public Criteria andTnameNotBetween(String value1, String value2) {
            addCriterion("tname not between", value1, value2, "tname");
            return (Criteria) this;
        }

        public Criteria andTkindIsNull() {
            addCriterion("tkind is null");
            return (Criteria) this;
        }

        public Criteria andTkindIsNotNull() {
            addCriterion("tkind is not null");
            return (Criteria) this;
        }

        public Criteria andTkindEqualTo(Integer value) {
            addCriterion("tkind =", value, "tkind");
            return (Criteria) this;
        }

        public Criteria andTkindNotEqualTo(Integer value) {
            addCriterion("tkind <>", value, "tkind");
            return (Criteria) this;
        }

        public Criteria andTkindGreaterThan(Integer value) {
            addCriterion("tkind >", value, "tkind");
            return (Criteria) this;
        }

        public Criteria andTkindGreaterThanOrEqualTo(Integer value) {
            addCriterion("tkind >=", value, "tkind");
            return (Criteria) this;
        }

        public Criteria andTkindLessThan(Integer value) {
            addCriterion("tkind <", value, "tkind");
            return (Criteria) this;
        }

        public Criteria andTkindLessThanOrEqualTo(Integer value) {
            addCriterion("tkind <=", value, "tkind");
            return (Criteria) this;
        }

        public Criteria andTkindIn(List<Integer> values) {
            addCriterion("tkind in", values, "tkind");
            return (Criteria) this;
        }

        public Criteria andTkindNotIn(List<Integer> values) {
            addCriterion("tkind not in", values, "tkind");
            return (Criteria) this;
        }

        public Criteria andTkindBetween(Integer value1, Integer value2) {
            addCriterion("tkind between", value1, value2, "tkind");
            return (Criteria) this;
        }

        public Criteria andTkindNotBetween(Integer value1, Integer value2) {
            addCriterion("tkind not between", value1, value2, "tkind");
            return (Criteria) this;
        }

        public Criteria andOrderNoIsNull() {
            addCriterion("order_no is null");
            return (Criteria) this;
        }

        public Criteria andOrderNoIsNotNull() {
            addCriterion("order_no is not null");
            return (Criteria) this;
        }

        public Criteria andOrderNoEqualTo(Integer value) {
            addCriterion("order_no =", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotEqualTo(Integer value) {
            addCriterion("order_no <>", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThan(Integer value) {
            addCriterion("order_no >", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_no >=", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThan(Integer value) {
            addCriterion("order_no <", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThanOrEqualTo(Integer value) {
            addCriterion("order_no <=", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoIn(List<Integer> values) {
            addCriterion("order_no in", values, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotIn(List<Integer> values) {
            addCriterion("order_no not in", values, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoBetween(Integer value1, Integer value2) {
            addCriterion("order_no between", value1, value2, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotBetween(Integer value1, Integer value2) {
            addCriterion("order_no not between", value1, value2, "orderNo");
            return (Criteria) this;
        }

        public Criteria andIsneedIsNull() {
            addCriterion("isNeed is null");
            return (Criteria) this;
        }

        public Criteria andIsneedIsNotNull() {
            addCriterion("isNeed is not null");
            return (Criteria) this;
        }

        public Criteria andIsneedEqualTo(Integer value) {
            addCriterion("isNeed =", value, "isneed");
            return (Criteria) this;
        }

        public Criteria andIsneedNotEqualTo(Integer value) {
            addCriterion("isNeed <>", value, "isneed");
            return (Criteria) this;
        }

        public Criteria andIsneedGreaterThan(Integer value) {
            addCriterion("isNeed >", value, "isneed");
            return (Criteria) this;
        }

        public Criteria andIsneedGreaterThanOrEqualTo(Integer value) {
            addCriterion("isNeed >=", value, "isneed");
            return (Criteria) this;
        }

        public Criteria andIsneedLessThan(Integer value) {
            addCriterion("isNeed <", value, "isneed");
            return (Criteria) this;
        }

        public Criteria andIsneedLessThanOrEqualTo(Integer value) {
            addCriterion("isNeed <=", value, "isneed");
            return (Criteria) this;
        }

        public Criteria andIsneedIn(List<Integer> values) {
            addCriterion("isNeed in", values, "isneed");
            return (Criteria) this;
        }

        public Criteria andIsneedNotIn(List<Integer> values) {
            addCriterion("isNeed not in", values, "isneed");
            return (Criteria) this;
        }

        public Criteria andIsneedBetween(Integer value1, Integer value2) {
            addCriterion("isNeed between", value1, value2, "isneed");
            return (Criteria) this;
        }

        public Criteria andIsneedNotBetween(Integer value1, Integer value2) {
            addCriterion("isNeed not between", value1, value2, "isneed");
            return (Criteria) this;
        }

        public Criteria andTstatusIsNull() {
            addCriterion("tstatus is null");
            return (Criteria) this;
        }

        public Criteria andTstatusIsNotNull() {
            addCriterion("tstatus is not null");
            return (Criteria) this;
        }

        public Criteria andTstatusEqualTo(Integer value) {
            addCriterion("tstatus =", value, "tstatus");
            return (Criteria) this;
        }

        public Criteria andTstatusNotEqualTo(Integer value) {
            addCriterion("tstatus <>", value, "tstatus");
            return (Criteria) this;
        }

        public Criteria andTstatusGreaterThan(Integer value) {
            addCriterion("tstatus >", value, "tstatus");
            return (Criteria) this;
        }

        public Criteria andTstatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("tstatus >=", value, "tstatus");
            return (Criteria) this;
        }

        public Criteria andTstatusLessThan(Integer value) {
            addCriterion("tstatus <", value, "tstatus");
            return (Criteria) this;
        }

        public Criteria andTstatusLessThanOrEqualTo(Integer value) {
            addCriterion("tstatus <=", value, "tstatus");
            return (Criteria) this;
        }

        public Criteria andTstatusIn(List<Integer> values) {
            addCriterion("tstatus in", values, "tstatus");
            return (Criteria) this;
        }

        public Criteria andTstatusNotIn(List<Integer> values) {
            addCriterion("tstatus not in", values, "tstatus");
            return (Criteria) this;
        }

        public Criteria andTstatusBetween(Integer value1, Integer value2) {
            addCriterion("tstatus between", value1, value2, "tstatus");
            return (Criteria) this;
        }

        public Criteria andTstatusNotBetween(Integer value1, Integer value2) {
            addCriterion("tstatus not between", value1, value2, "tstatus");
            return (Criteria) this;
        }

        public Criteria andBegindateIsNull() {
            addCriterion("beginDate is null");
            return (Criteria) this;
        }

        public Criteria andBegindateIsNotNull() {
            addCriterion("beginDate is not null");
            return (Criteria) this;
        }

        public Criteria andBegindateEqualTo(Date value) {
            addCriterionForJDBCDate("beginDate =", value, "begindate");
            return (Criteria) this;
        }

        public Criteria andBegindateNotEqualTo(Date value) {
            addCriterionForJDBCDate("beginDate <>", value, "begindate");
            return (Criteria) this;
        }

        public Criteria andBegindateGreaterThan(Date value) {
            addCriterionForJDBCDate("beginDate >", value, "begindate");
            return (Criteria) this;
        }

        public Criteria andBegindateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("beginDate >=", value, "begindate");
            return (Criteria) this;
        }

        public Criteria andBegindateLessThan(Date value) {
            addCriterionForJDBCDate("beginDate <", value, "begindate");
            return (Criteria) this;
        }

        public Criteria andBegindateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("beginDate <=", value, "begindate");
            return (Criteria) this;
        }

        public Criteria andBegindateIn(List<Date> values) {
            addCriterionForJDBCDate("beginDate in", values, "begindate");
            return (Criteria) this;
        }

        public Criteria andBegindateNotIn(List<Date> values) {
            addCriterionForJDBCDate("beginDate not in", values, "begindate");
            return (Criteria) this;
        }

        public Criteria andBegindateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("beginDate between", value1, value2, "begindate");
            return (Criteria) this;
        }

        public Criteria andBegindateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("beginDate not between", value1, value2, "begindate");
            return (Criteria) this;
        }

        public Criteria andEnddateIsNull() {
            addCriterion("endDate is null");
            return (Criteria) this;
        }

        public Criteria andEnddateIsNotNull() {
            addCriterion("endDate is not null");
            return (Criteria) this;
        }

        public Criteria andEnddateEqualTo(Date value) {
            addCriterionForJDBCDate("endDate =", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateNotEqualTo(Date value) {
            addCriterionForJDBCDate("endDate <>", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateGreaterThan(Date value) {
            addCriterionForJDBCDate("endDate >", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("endDate >=", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateLessThan(Date value) {
            addCriterionForJDBCDate("endDate <", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("endDate <=", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateIn(List<Date> values) {
            addCriterionForJDBCDate("endDate in", values, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateNotIn(List<Date> values) {
            addCriterionForJDBCDate("endDate not in", values, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("endDate between", value1, value2, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("endDate not between", value1, value2, "enddate");
            return (Criteria) this;
        }

        public Criteria andKeypersonIsNull() {
            addCriterion("keyPerson is null");
            return (Criteria) this;
        }

        public Criteria andKeypersonIsNotNull() {
            addCriterion("keyPerson is not null");
            return (Criteria) this;
        }

        public Criteria andKeypersonEqualTo(String value) {
            addCriterion("keyPerson =", value, "keyperson");
            return (Criteria) this;
        }

        public Criteria andKeypersonNotEqualTo(String value) {
            addCriterion("keyPerson <>", value, "keyperson");
            return (Criteria) this;
        }

        public Criteria andKeypersonGreaterThan(String value) {
            addCriterion("keyPerson >", value, "keyperson");
            return (Criteria) this;
        }

        public Criteria andKeypersonGreaterThanOrEqualTo(String value) {
            addCriterion("keyPerson >=", value, "keyperson");
            return (Criteria) this;
        }

        public Criteria andKeypersonLessThan(String value) {
            addCriterion("keyPerson <", value, "keyperson");
            return (Criteria) this;
        }

        public Criteria andKeypersonLessThanOrEqualTo(String value) {
            addCriterion("keyPerson <=", value, "keyperson");
            return (Criteria) this;
        }

        public Criteria andKeypersonLike(String value) {
            addCriterion("keyPerson like", value, "keyperson");
            return (Criteria) this;
        }

        public Criteria andKeypersonNotLike(String value) {
            addCriterion("keyPerson not like", value, "keyperson");
            return (Criteria) this;
        }

        public Criteria andKeypersonIn(List<String> values) {
            addCriterion("keyPerson in", values, "keyperson");
            return (Criteria) this;
        }

        public Criteria andKeypersonNotIn(List<String> values) {
            addCriterion("keyPerson not in", values, "keyperson");
            return (Criteria) this;
        }

        public Criteria andKeypersonBetween(String value1, String value2) {
            addCriterion("keyPerson between", value1, value2, "keyperson");
            return (Criteria) this;
        }

        public Criteria andKeypersonNotBetween(String value1, String value2) {
            addCriterion("keyPerson not between", value1, value2, "keyperson");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andKeypersonidIsNull() {
            addCriterion("keyPersonId is null");
            return (Criteria) this;
        }

        public Criteria andKeypersonidIsNotNull() {
            addCriterion("keyPersonId is not null");
            return (Criteria) this;
        }

        public Criteria andKeypersonidEqualTo(Integer value) {
            addCriterion("keyPersonId =", value, "keypersonid");
            return (Criteria) this;
        }

        public Criteria andKeypersonidNotEqualTo(Integer value) {
            addCriterion("keyPersonId <>", value, "keypersonid");
            return (Criteria) this;
        }

        public Criteria andKeypersonidGreaterThan(Integer value) {
            addCriterion("keyPersonId >", value, "keypersonid");
            return (Criteria) this;
        }

        public Criteria andKeypersonidGreaterThanOrEqualTo(Integer value) {
            addCriterion("keyPersonId >=", value, "keypersonid");
            return (Criteria) this;
        }

        public Criteria andKeypersonidLessThan(Integer value) {
            addCriterion("keyPersonId <", value, "keypersonid");
            return (Criteria) this;
        }

        public Criteria andKeypersonidLessThanOrEqualTo(Integer value) {
            addCriterion("keyPersonId <=", value, "keypersonid");
            return (Criteria) this;
        }

        public Criteria andKeypersonidIn(List<Integer> values) {
            addCriterion("keyPersonId in", values, "keypersonid");
            return (Criteria) this;
        }

        public Criteria andKeypersonidNotIn(List<Integer> values) {
            addCriterion("keyPersonId not in", values, "keypersonid");
            return (Criteria) this;
        }

        public Criteria andKeypersonidBetween(Integer value1, Integer value2) {
            addCriterion("keyPersonId between", value1, value2, "keypersonid");
            return (Criteria) this;
        }

        public Criteria andKeypersonidNotBetween(Integer value1, Integer value2) {
            addCriterion("keyPersonId not between", value1, value2, "keypersonid");
            return (Criteria) this;
        }

        public Criteria andGroupIdIsNull() {
            addCriterion("group_id is null");
            return (Criteria) this;
        }

        public Criteria andGroupIdIsNotNull() {
            addCriterion("group_id is not null");
            return (Criteria) this;
        }

        public Criteria andGroupIdEqualTo(Integer value) {
            addCriterion("group_id =", value, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdNotEqualTo(Integer value) {
            addCriterion("group_id <>", value, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdGreaterThan(Integer value) {
            addCriterion("group_id >", value, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("group_id >=", value, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdLessThan(Integer value) {
            addCriterion("group_id <", value, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdLessThanOrEqualTo(Integer value) {
            addCriterion("group_id <=", value, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdIn(List<Integer> values) {
            addCriterion("group_id in", values, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdNotIn(List<Integer> values) {
            addCriterion("group_id not in", values, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdBetween(Integer value1, Integer value2) {
            addCriterion("group_id between", value1, value2, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdNotBetween(Integer value1, Integer value2) {
            addCriterion("group_id not between", value1, value2, "groupId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}